package com.yyl.ssodemo.feign;

import com.yyl.entity.EEmpInfo;
import com.yyl.entity.ERole;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

 //调用的是哪一个微服务
@FeignClient("syssystem")
public interface UserService {

    // 根据用户名 获取TUser
    @GetMapping("api/emp/{tel}")
    EEmpInfo getByUserName(@PathVariable String tel);

    @GetMapping("api/role/{eid}")
    List<String> findByUid(@PathVariable String eid);
}
